package top.rhynie.web3j.enums;

public enum TronApiEnum {

  ACCOUNT_INFO("v1/accounts/", "获取账户信息"),
  NOW_BLOCK("wallet/getnowblock", "获取最新区块"),
  CONTRACT_INFO("wallet/getcontract", "获取区块链中的智能合约信息"),
  TRIGGER_CONSTANT_CONTRACT("wallet/triggerconstantcontract", "调用合约的常量函数，函数类型需为view或pure"),
  BROADCAST_HEX("wallet/broadcasthex", "广播交易"),
  ;

  private String url;

  private String urlDesc;

  public String getUrl() {
    return url;
  }

  public void setUrl(String url) {
    this.url = url;
  }

  public String getUrlDesc() {
    return urlDesc;
  }

  public void setUrlDesc(String urlDesc) {
    this.urlDesc = urlDesc;
  }

  private TronApiEnum() {

  }

  private TronApiEnum(String url, String urlDesc) {
    this.url = url;
    this.urlDesc = urlDesc;
  }
}
